package com.aj.Interface;

import com.aj.pojo.Role;
import entity.PageResult;
import entity.QueryPageBean;

import java.util.List;

public interface RoleService {
    PageResult findpage(QueryPageBean queryPageBean);
    List<Role> findall();
    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    void delete(Integer id);

    Role findRoleById(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    List<Integer> findMenuIdsBySetmealid(Integer id);

    void editTrue(Role role, Integer[] permissionIds, Integer[] menuIds);
}
